home *** CD-ROM | disk | FTP | other *** search
- // drawview.h : interface of the CDrawView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #ifndef TABVIEW_H
- #include "tabview.h"
- #endif
- class CDrawView : public CScrollView
- {
- protected: // create from serialization only
- CDrawView();
- DECLARE_DYNCREATE(CDrawView)
- void drawButton(CDC* pDC,CRect rect, char* label);
-
- // Attributes
- public:
- CTabDoc* GetDocument();
- CTabView* m_pTabView;
-
- // Operations
- public:
-
- // Implementation
- public:
- virtual ~CDrawView();
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual void OnInitialUpdate();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- // Printing support
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CDrawView)
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLookChicago();
- afx_msg void OnLookMsword();
- afx_msg void OnSysCommand(UINT nChar,LONG lParam);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- #ifndef _DEBUG // debug version in demoview.cpp
- inline CTabDoc* CDrawView::GetDocument()
- { return (CTabDoc*) m_pDocument; }
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
-